import React from 'react';
import { HashRouter, Route, Link, Switch } from 'react-router-dom'
import about from '../route1/about'
import topic from '../route1/topic'
import Main from './main'
import Home from './Home'
import imooc from './imooc'
import info from '../route3/info'
import NoMatch from '../route3/noMatch'

export default class IRouter extends React.Component {
  render() {
    return (
      <HashRouter>


        <Route path="/a" component={Home}  >

        </Route>
        <Route path="/a/home" render={() => {
          return <Main>
            <Route path="/a/home/:value" component={info}></Route>
          </Main>
        }}></Route>

        <Route path="/about" component={about}></Route>
        <Route path="/topics" component={topic}></Route>
        {/* <Route path='/imooc' component={imooc}></Route>
            <Route path='*' component={NoMatch}></Route> */}


        <HashRouter>         <Route path='/imooc' component={imooc}></Route> </HashRouter>




      </HashRouter>

    )
  }
}